import request from '@/util/axios.js'


//登录方法
export const login = (data) => {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

//注册方法
export const register = (data) => {
    return request({
        url: '/register',
        method: 'post',
        data
    })
}